package com.ruoyi.edu.api.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Alex
 * @version 1.0
 * @date 2023/9/15 0:30
 */
@Data
public class EduCourseVO {
    /**
     * 课程ID
     */
    private String id;

    /**
     * 讲师
     */
    @Excel(name = "讲师")
    private String teacherName;

    private String teacherId;

    /**
     * 类别
     */
    @Excel(name = "类别")
    private String subjectName;

    private String subjectId;

    /**
     * 大类
     */
    private String subjectParentId;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 销售价格
     */
    @Excel(name = "销售价格")
    private BigDecimal price;

    /**
     * 总课时
     */
    @Excel(name = "总课时")
    private Integer lessonNum;

    /**
     * 封面图
     */
    @Excel(name = "封面图")
    private String cover;

    /**
     * 销量
     */
    @Excel(name = "销量")
    private Integer buyCount;

    /**
     * 浏览数
     */
    @Excel(name = "浏览数")
    private Integer viewCount;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    /**
     * 课程详情信息
     */
    private String description;

    /**
     * 讲师头像
     */
    private String avatar;
}
